package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.wx_home_index.HomeIndexVO;
import com.cskaoyan.service.wx.homeindex.HomeIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: WD created on 2021-09-18 16:50
 * @Version:
 */
@RestController
@RequestMapping("wx/home")
public class WXHomeIndexController {

    @Autowired
    HomeIndexService homeIndexService;


    @RequestMapping("index")
    public BaseRespVo getIndex() {
        HomeIndexVO homeIndex = homeIndexService.getHomeIndex();
        return BaseRespVo.ok(homeIndex);

    }


}
